package com.ytkj.digitalConstruction.util;

import com.ytkj.digitalConstruction.ReturnCode;

/**
 * 
 * @author klaus
 *
 */
public class ResultUtil {

	public static ReturnCode success(Object object) {
		return new ReturnCode.Builder().Msg("成功").Object(object).build();
	}

	public static ReturnCode success() {
		return success(null);
	}

	public static ReturnCode error(Integer code, String msg) {
		return new ReturnCode.Builder().Msg(msg).Success(false).Object(code).build();
	}
}
